package com.six.backend.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Author: skyler
 * @Date: 2021/11/14 21:10
 */
@Configuration
public class WebSocketConfig {
    /**
     * 注入serverEndpointExporter对象
     * @return ServerEndpointExporter对象
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
